#include <bits/stdc++.h>
using namespace std;
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
using ll = long long;
ll n;
char a[222];
void dfs(int id,int sum,int now)
{
    if(id>=n)
    {
        if(sum+now==0)
        {
            printf("%s\n", a);
        }
    }
    a[id*2-1]=' ';
    if(now>0)
    {
        dfs(id+1,sum)
    }
    dfs(id + 1, sum + now, now + 1);
}
void solve()
{
    cin >> n;
    for( ll i=0;i<=n;i++)
    {
        a[i*2]='1'+i;
    }
    //dfs(1, 0, 1);
    cout<<(int)' '<<endl;
    cout<<(int)'+'<<endl;
    cout<<(int)'-'<<endl;
}
int main()
{
    int t = 1;
    //cin >> t;
    while(t--)
    {
        solve();
    }
   return 0;
}
